{include file="common/head" /}

  <body>
    <div class="x-body">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">
                   头像
                </label>
                <img src="{$user.avatar}" id="thumb" alt="" width="100" height="100"  >
            </div>
          <div class="layui-form-item">
              <label  class="layui-form-label">
                  昵称
              </label>
              <div class="layui-input-inline">
                  <input type="text"   class="layui-input" value="{$user.nickname}" disabled>
              </div>
          </div>
          <div class="layui-form-item">
              <label  class="layui-form-label">
                  性别
              </label>
              <div class="layui-input-inline">
                  <input type="text"   value="{$user.sex}" class="layui-input" disabled>
              </div>
          </div>
            <div class="layui-form-item">
                <label  class="layui-form-label">
                    加入时间
                </label>
                <div class="layui-input-inline">
                    <input type="text"  value="{$user.create_time}" class="layui-input" disabled>
                </div>
            </div>
            <table class="layui-table">
                <thead>
                <tr>
                    <!--<th>-->
                    <!--<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>-->
                    <!--</th>-->
                    <th>名字</th>
                    <th>手机号</th>
                    <th>收货地址</th>
                    <th>创建时间</th>
                </thead>
                <tbody>

                {volist name='user.member_address' id='address'}
                <tr>
                    <!--<td>-->
                    <!--<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>-->
                    <!--</td>-->
                    <td>{$address.name}</td>
                    <td>{$address.mobile}</td>
                    <td>{$address.province} {$address.city} {$address.country} {$address.detail}</td>
                    <td>{$address.create_time}</td>
                </tr>
                {/volist}
                </tbody>
            </table>
          <div class="layui-form-item">
              <label class="layui-form-label"></label>
              <button  class="layui-btn" lay-filter="close" lay-submit="">
                  关闭
              </button>
          </div>
      </form>
    </div>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
          //监听提交
          form.on('submit(close)', function(data){
                // 获得frame索引
                var index = parent.layer.getFrameIndex(window.name);
                //关闭当前frame
                parent.layer.close(index);
            return false;
          });
        });
    </script>
  </body>

</html>